package com.neusoft.neuiotms.dcam.fixed.vo;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.neuiotms.dcam.fixed.model.enums.InventoryDutyResultStatus;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class InventoryResultVO implements IExcelDataModel, IExcelModel {

    private String id;

    @Excel(name = "资产名称", orderNum = "0", width = 20)
    @NotBlank(message = "资产名称不能为空")
    @Length(max = 255, message = "资产名称不能超过{max}位")
    private String name;

    @Excel(name = "资产编号", orderNum = "1", width = 20)
    @NotBlank(message = "资产编号不能为空")
    @Length(max = 255, message = "资产编号不能超过{max}位")
    private String code;

    @Excel(name = "使用部门", orderNum = "2", width = 20)
    private String orgName;

    @Excel(name = "使用人", orderNum = "3", width = 20)
    private String userName;

    @Excel(name = "位置", orderNum = "4", width = 20)
    private String locationName;

    @Excel(name = "盘点状态", replace = {"盘亏_loss", "盘盈_gain",
            "盘平_equality", "待盘_wait" }, orderNum = "5")
    private InventoryDutyResultStatus resultStatus;

    @Excel(name = "变更部门", orderNum = "6", width = 20)
    private String updateOrgName;

    @Excel(name = "变更使用人", orderNum = "7", width = 20)
    private String updateUserName;

    @Excel(name = "变更位置", orderNum = "8", width = 20)
    private String updateLocationName;

    @Excel(name = "更新时间", orderNum = "9", format = "yyyy.MM.dd HH:mm:ss", width = 20)
    private Date updateTime;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
